from _md5 import md5


def md5_encryption(data: str) -> str:
    """
    MD5 encryption
    :param data: data that needs to be encrypted
    :return: md5 encrypted data
    """
    md5_obj = md5()
    md5_obj.update(data.encode(encoding='utf-8'))
    return md5_obj.hexdigest()
